<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        // 方式1  直接创建

        var user = {
            name:'张三',
            age:42
        }


        方式2
        var obj = new Object();   //创建出一个空对象


    </script>
</body>
</html>